package com.olocat.cjx.nsims.pojo.personnel

import javax.persistence.*

@Entity
@Table(name = "ward")
data class Ward(@Id var number: String?, var count: Int?,var doctor: String?, var department: Int?, var nurse: String?,
                @OneToMany //一对多标注
                @JoinColumn(name = "ward") // 对应字段
                var patients:List<Patient>? ) {
    constructor() : this(null, null, null, null, null, null)
}

